<% unless cart.meal_items.blank? %>
	<h3>Meals</h3>
	<% for meal_item in cart.meal_items %>
		<p>
                    <%= meal_item.quantity %> x <%= link_to meal_item.name, meal_item.item %> - <%= meal_item.price %>,-
                    <%= button_to 'Remove', :controller => :store, :action => :remove_meal_from_cart, :id => meal_item.item %>
                </p>
	<% end %>
<% end %>

<% unless cart.product_items.blank? %>
	<h3>Products</h3>
	<% for product_item in cart.product_items %>
		<p>
                    <%= product_item.quantity %> x <%= link_to product_item.name, product_item.item %> - <%= number_to_currency product_item.price, :unit => 'PLN', :precision => 2 %>,-
                    <%= button_to 'Remove', :controller => :store, :action => :remove_product_from_cart, :id => product_item.item %>
                </p>
	<% end %>
<% end %>

<p><b>Total: <%= number_to_currency cart.price, :unit => 'PLN', :precision => 2 %>,-</b></p>

<% unless cart.empty? %>
	<%= button_to 'Empty cart', :controller => :store, :action => :empty_cart %>
        <%= link_to 'Checkout', :controller => :store, :action => :checkout %>
<% end %>